package events {
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Vjekoslav Ratkajec
	 */
	public class ScreenEvent extends Event {
		
		public static const SWITCH_SCREEN:String = "switchScreen";
		
		private var _result:Object = null;
		
		public function ScreenEvent(type:String, result:Object = null, bubbles:Boolean=false, cancelable:Boolean=false) { 
			super(type, bubbles, cancelable);
			
			_result = result;
		} 
		
		public override function clone():Event { 
			return new ScreenEvent(type, result, bubbles, cancelable);
		} 
		
		public override function toString():String { 
			return formatToString("ScreenEvent", "type", "result", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get result():Object {
			return _result;
		}
		
	}
	
}